package com.ruoyi.web.article.service;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.web.article.domain.TrainArticle;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 文章Service接口
 *
 * @author 范书铭
 * @date 2024-10-13
 */
public interface ITrainArticleService extends IService<TrainArticle> {

    /**
     * 查询文章列表
     *
     * @param trainArticle 文章
     * @return 文章集合
     */
    public List<TrainArticle> selectTrainArticleList(TrainArticle trainArticle);


    TrainArticle getArticleById(Long id,Long userId);

    List<TrainArticle> selectUserHistory(Long userId);

    List<SysUser> selectArticleHistory(Long articleId);

    List<TrainArticle> userCollectionArticle(Long userId);
}